package com.yuntai.pms.model.entity.access;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: maoze@hsyuntai.com
 * Date: 2019-01-16
 * Time: 10:38
 */
@Data
public class HfpHosAccessRule implements Serializable {
    private static final long serialVersionUID = 4769237720954910898L;
    private Long    ruleId;           // `rule_id` bigint(15) NOT NULL AUTO_INCREMENT COMMENT '对接规则编号',
    private Long    hosId;            // `hos_id` bigint(15) NOT NULL COMMENT '医院编号',
    private String  moduleType;       // `module_type` varchar(32) NOT NULL COMMENT '对接模块类型',
    private String  accessFlag;       // `access_flag` varchar(2) NOT NULL COMMENT '对接标识 对接标识 1:对接打开 2：对接关闭 3：模拟对接9：无需对接',
    private String  accessType;       // `access_type` varchar(2) NOT NULL COMMENT '1对接同步2业务处理',
    private String  isDeleted;        // `is_deleted` char(1) DEFAULT 'N' COMMENT '删除标示，N未删除 Y-已删除',
    private String  creator;          // `creator` varchar(20) DEFAULT NULL COMMENT '最后修改管理员ID',
    private Date    createTime;       // `create_time` datetime NOT NULL COMMENT '创建时间',
    private Date    updateTime;       // `update_time` datetime NOT NULL COMMENT '更新时间',

    public String toString() {
        return JSON.toJSONString(this);
    }
}
